added tex for exercise 7