added print_nums sample code