checking in the different functions requuired to calculate mean, variance, creating data