pattern matching, some simple docs.