introduced dataBin class for easier subset sampling