Separated the main class(entry point of application)

Still a lot to improve !