Code Example

Don't guess how to write it from scratch. Start with a working example, then understand why it's written that way.