some controller and model code