a bed is a horizontal surface used for resting