classes and printing