Started demo 4
Final code.