building the mvc structure