Added Pattern Class