Merge pull request #2 from jhtsh/leaf

issue03
fixed the issue04