Practice 9: dump data to file