Implemented the full MVC-model