completed the second exercise (3.5)