Modeling height of stack of chairs