There is a curve missing in the last Figure in 5.3. It is because in the code: if (i in sample_dates): {i} should be {i+1} instead.