-- Implemented MVC from tutorial part 3