Applying probability in exercises