Corrected code samples that did not validate

Closes-Bug: #1285327

Change-Id: Ib3ff6e7f2ec5fd36207537aa1c6ddd294142b7b6
author: diane fleming