building the model and controller
building the model