Set up model and controller classes