if a defendant is charged with burglary but admits to a lesser charge of trespassing in exhange for ithe prosecution dismissing the burglary charge and forgoing the criminal trial, it is an example of an