Model view pattern implemented for java.