Updated lerp exercise with different states and state machine.