class macro basic example