add dynamic methods to Model class