added pointers sample