added some pattern matching notes