Adding the code behind the examples to a slide