Add pattern mathcing example.