This reward-based learning process is called positive and negative reinforcement, and basically goes like this.
Šis atlygiu paremtas mokymosi procesas vadinamas teigiamu ir neigiamu  pastiprinimu ir veikia maždaug taip.