Update sampling.jl