initial code for the examples