Added compareTo() method. Tested in driver.