implemented comparable interface for basic classes, tests modified accordingly