Added model and controller classes

Added model and controller classes