repeated square coding | ScratchStats