Worked on Problem4