Updated example application. Changes are related to new functional handler API.