A practice after reading source code of Polya.