Adding equals and hashCode methods to Note