snowball generator and code for paice-husk