How an electric locomotive works...