completed recursion exercise, getting the hang of this