Finally fixed the bugs in my code and completed the questions. Final submission.