Added example test3 to check pointers impl