v1 of model and controller