Last modifications, implementing MAIN class