Added traversal to .cpp file, compiles but isn't finished