Added traversal code to print in-order, but need to change to file write operation and possibly add in another paremeter for the method