Add implementation of equals() and hashCode()