Updated exercise 3.a