answers to exercise 2 and class examples