[#374,docs][s]: add code example to front page - fixes #374.