Added main method and constructer in RunMain