Code for practicing statistics