Example code for Habrahabr. article.