updated exercise 1b