Python class example on number of samples needed for an experiment (coin flips), variance, standard deviation, and histogram plots