added trainer model and updated routes resource