Implemented Comparable for Class class.