adding in the associated_class method for attributes