program for question 3 | ScratchStats