resolution of programming assignment2