toy recursion problems