Engineering a good night’s sleep