結果 : write the two main function of leaf