added class pattern