added #update_attributes method