Output file extention changed to match Coursera requirement.