added class snippet