Tried to implement MVC stuff.