Implemented hashCode in Model.