implemented a simple mvc