Another way to say "a flat is used for sleeping" is "One sleeps in a flat."