exercise 5.2 submitted