Use synchronized method in NumberPrinter to print completion message