new functional sample added. to be moved to zvmlib (zerovm test
framework)