Updating example code