programming assingnement 2 solution