added class to practice equals() and hashCode()