define call function
Merge pull request #1 from pocket7878/general-call-function

Define general method call function.