Rewrote definition for expanded-state, and changed code example to use expanded-state instead of collapsed-state.