Just some code examples from a book....