Commit Revised programming assignment 2