removed todo statements and the test function printFiles