changed output to .txt

coursera wouldn't let me upload a .csv file, so I changed the output
file to .txt.  format stays the same.