assign_attributes method