The cotton gin was invented by Eli Whitney in 1793