add compareTo method to model classes.