made the number of data sets local to classes