patterns.cpp uses classes from classic folder