Added commenting to code examples so students understand what they are
doing.