Implemented printing of numbers to out stream