Edited and verified examples 1 and 3. Made edits where appropriate.