Added to generics to compareTo method