monitored execution of simple example