Constructing sleep