completely refactored print_year functionality. Reduced redundant code significantly