implement takahashi macro
Merge pull request #20 from Joe-noh/takahashi-method