I think it could be better if the commands will not be in main class.