Can you extend the example so that I can copy it into a text file and run it?