added get_name method to model