add function to enable user to define sample size. currently set to 100 instances per sample