recursion chapter work