restored exercise 1 solution