Examples on various sampling methods