code for exercises from intro to stats learning