program for question 2 | ScratchStats