exercise 1 solution added.