added class macro