Core part of a MVC application in Java for a semester project