part 2 coding of decision | ScratchStats