implemented the mvc pattern