Begun impl. text file output