What was the profession of the inventor of cotton candy?

What was the profession of the inventor of cotton candy?