Fix Homework's model and controller
Merge branch 'terms' of https://github.com/eugene-auduchinok/hwproj into terms