add class for determining number of cores and test program