Tested example program.