Implemented compareTo method in Result class