Finished writing the private add function and wrote the public add