coursera assignment - text file