Working with objects and prints to files, passing file handles.