controllers & models pdf