add pointers example code