added recursive 410 function for printing numbers