For the people with limited living space, here is another solution to your problems. The Form_Z01 was designed by Vladimir Yuzbashev which can function as a study or a bedroom with only 17 sq.m. of space needed.
It contains a cloakroom with six wide shelves, a cloths rack, a desk with a built-in lamp, two pull out drawers and a slide out bed for two people.
(Source) Design Launches