add blog post 3 code
push name resampling code