incomplete program of week-9, problem-3
week-9 problem-3&4 solved.