fixed sample 31
Merge pull request #9 from 3skif9/master

fixed sample 31