My answer to the assignment | ScratchStats