Refactor methods equals() and hashCode() of class Mark