Earlier coal-gas methods had been used for lighting since the 1820s, but they were expensive.