added the CLASS output keyword for checking the CLASS attribute