Updated Example Code