for exercise 4B