learn how to write a simple mvc framework