Is it not possible to recursion in the main function? Is the only alternative a loop? any help is appreciated.