code added to the example