print class and title