Added Models and controller classes

was a bit late to commit this...