Exercise 1 for PIRO