finished ex6, added energy plots for pendulums using Euler method