Implementing Add functionality and test.