Added getSubset method to classes.