beginning to implement model view controller