NumberPrinter from inner class to outer class