apply the mvc model to assignment