UPDATE
Added Patternmatching class