Switched to pointers internally ; new sample.cc file