I can define different sampling methods.