How Electricity Is Generated From Waves