add set_pointers() function in new constructor