Controller class added
[refactoring] - inversion of control