hw 28

added overwritten equals, modified compareTo (also corrections from
class)