Connected MainClass to CommandHandler