output works in some sort of way (printing pointers)