結果 : two types of recursive function