completed part E

(hopefully)