small refactoring of very basic example

Change-Id: I3b5c301614762cafe5877b3f44091c5133a6169f