Creating a class that has orderable objects