Fixed #4, Add equals and hashCode methods.