Adding equals() and hashCode() to the BaseFeature