Working Commit

Program is now fully functional with the given code.