PT3 basic code