linear functions | ScratchStats