Added a label for view
Refractored some code in model/*
Implemented main logic in Controller