Examples

Note: To keep the samples short, these examples don't handle any errors.