complete coding m-v-c match java version