Finished part F, it has the same code repititions as part E, but it works. Also fixed pow in part A.