Some simple logic and use of operators | ScratchStats