Update MainClass

It is responsible for calling the other classes. It has the main function in it.