Created model and controller