created model and controller calsses and implemetned class resolution function (alpha)