State Machine with Robot Cleaner example