solve second programming assignment