programming assignment 2_2