pattern match examples