increimeental check in from lecture 3
incremental check in, appears to be working. p110 in lecutre 2 slides.
final code after lecture 3 slides