passing specs for model and controller