moved definitions of Sampler to .cpp instead .h