Modernize and expand statistics notebook