Calculating patterns | ScratchStats