The following code will create the example shown on the main page