test task for https://gist.github.com/smirik/09a2469ff2d443a0d9c2