extracted the Command class from Module