add case pattern matching example