calculating standard deviation by hand