Lecture 5- Modeling and simulation (Modified)