Didn't quite understand how to calculate the average local error and the error in the final value but had a go here.