Worked on mode method