Working example program.