HOW DOES A LINEAR GENERATOR WORK