Move print method to super class.
Update tests.