Class AbstractCommand was added. Command classes were remade using AbstractCommand class.