interactive: simplify examples

It's not necessary to give names to those functions.
Merge pull request #19 from fsouza/master

interactive: simplify examples