In 1881, James Bonsack developed a machine that made it far easier to mass-produce cigarettes. But at the time, other tobacco products were much more popular – so manufacturers had to find new ways of getting people’s attention. Tim Harford explains why the methods they devised are still working on consumers today.