Added hashCode method to Attribute class