Semi-final Version 1.0

Working fine for all the test cases.
Commented.
Need to check if MVC can be used.