debugged all classes and tested sampler