First off, you need a bedroom, which requires level 20 Construction and 10,000 coins. From there, you just need to have the right Construction level to build the bed, the necessary materials, and enough coins to make it happen.