Changed sampling script to sampling
Exposed factory method for finding classes so it can be used in other areas