define related_model method