completed #5
+writeout to a file