Added equals and hashCode implementations for model.