The Basics of Simulation