Another way to say "Lamps are used to generate light" is "light can be generated by lamps"