added printNumber()
Added a better function