programming assignment 2 resolution