Sample code of model, view, controller