basic theory from slides