implement simple mvc