Added code for the ChartWatch blog post.