model and backend controller for exercise