test out implementing comparable
edited compareTo in TaskClass