Added solution for 2nd programming assignment