Implemented basic program from chapter 2
Experiments from chapter 2 (cumulative error)