Week 5 programming exercises changes.
Updated manual and code for Week 5: introduced FSM