added answer to exercise 2A