I have made the code changes required to reflected to complete the programming assignment2