created model and controller