Chapter 5 1-D Sim