Made the program object global.
Added second example.