Completed the first part of programming assignment 1 successfully.