Completion of programming assignment number 2