my last edit on programming assignment2