added plot scripts and started ch 4