added discretizer class