Java Model-View-Controller Exercise