complete error handling averages exercise
finished