Ch4 pattern matching