mvc example using java