model and controller for cicle