implementing mvc