programming assignment 2 files