final commit for programming assignment 2