programming assignment 1 files