Implement add function.
Merge pull request #1 from loqi/addition_function

Implement add function.