"Checkpoint 1 - copy just this expression"
| a b q remainder |
a := 99. b := 78.
q := a // b.
remainder := a - (q * b).
{q. remainder. a = ((q * b) + remainder)}

"Checkpoint 2 - copy just this expression"
| a b rows |
a := 99. b := 78.
rows := #((99 1 0) (78 0 1)).
rows collect: [:row | row first = (((row at: 2) * a) + ((row at: 3) * b))]

"Checkpoint 3 - copy just this expression"
| previous current q next |
previous := #(99 1 0). current := #(78 0 1).
q := previous first // current first.
next := (1 to: 3) collect: [:i |
 (previous at: i) - (q * (current at: i))].
next asArray

"Checkpoint 4 - copy just this expression"
| a b oldR r oldS s oldT t |
a := 99. b := 78.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
{oldR. oldS. oldT}

"Checkpoint 5 - copy just this expression"
| a b oldR r oldS s oldT t |
a := 99. b := 78.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
{((oldS * a) + (oldT * b)) = oldR.
 (a \\ oldR) = 0. (b \\ oldR) = 0}

"Checkpoint 6 - copy just this expression"
| a b oldR r oldS s oldT t |
a := 17. b := 43.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
{oldR. oldS. oldS \\ b. ((oldS \\ b) * a) \\ b}

"Checkpoint 7 - copy just this expression"
| a b oldR r oldS s oldT t |
a := 12. b := 18.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
oldR = 1 ifTrue: [oldS \\ b] ifFalse: [#noInverse]

"Checkpoint 8 - copy just this expression"
| a b oldR r oldS s oldT t |
a := 17. b := 43.
oldR := a. r := b.
oldS := 1. s := 0. oldT := 0. t := 1.
[r ~= 0] whileTrue: [ | q next |
 q := oldR // r.
 next := oldR - (q * r). oldR := r. r := next.
 next := oldS - (q * s). oldS := s. s := next.
 next := oldT - (q * t). oldT := t. t := next].
{(5 * (oldS \\ b)) \\ b.
 (a * ((5 * (oldS \\ b)) \\ b)) \\ b}