Original sentence: Commander Caractacus Pott is an inventor who buys and renovates an old car after gaining money from an impromptu dance act which Pott unwittingly found himself in after being chased by an upset patron of his failed hair cutting machine.He had attempted to raise the money from a local confectionery factory by selling his holed candy "toot sweets", the plan had failed after the whistling sound of the candy had attracted dogs to the factory
Edited sentence: Commander Caractacus Pott is an inventor who buys and renovates an old car after gaining money from inventing and selling whistle-like sweets to Mr.Scrumptious, the wealthy owner of a local confectionery factory