Resolution for programming assignment 2