Flexibility in the design of buildings