cleanup of exercise 9