Submission for programming assignment 2