create patternmatch class case