Renamed `sam` to `sampler`