changes to example code