added compareTo method for Profiles