simple add function
using pointer to pointer