added a basic add function and test