change parseIntoCommand to return Command* instead of Command