Correct class/pattern printing