Code for examples