add exercise 5 but with error