Updated exercise 1.20 with exploration