Adding the initial code for the example