Trying to reduce the print method complexity