Added pattern matching example