Some solutions to 'looping is recursion' chapter