ch6 recursions