Edited recursive function and completed q05
Edited and completed q08