finish debugging problem1a