A simple MVC model code implemented in Java.