problem3 partA done part B partially done part C done