Exercise 3. Working with probability distributions