This sofa bed is a good choice for a small space.  You  have a  sofa and a shelf during the day, and transform the sofa  into a double bed for night.

source: http://freshome.com/2007/10/08/sofa-bed-hidden-in-the-wall/