implemented basic mvc