begin mvc structure implementation