edited the file for programming assignment2