created teacher mdl and controller