class printing