Added sample code and diffs