Added Pattern class