updating the example source code