What would you do if you couldn’t afford to pay rent in the city of your dreams?

For Peter Berkowitz, the solution to sky-high San Francisco rent has been to build a box, or a “pod” as he calls it, in the living room of a friend’s apartment. The pod cost $1300 to build, and he pays $400 per month for the space, making the total monthly cost roughly $508 per month.

“Yes, living in a pod is silly,” Berkowitz writes in a blog post. “But the silliness is endemic to San Francisco’s absurdly high housing prices—the pod is just a solution that works for me.”

Berkowitz explains to Fortune that the inspiration behind the pod was the Japanese idea of “capsule hotels,” which allow guests to essentially rent beds.

“If you just make a plywood box it probably isn’t going to be that great,” says. The key is to make the space practical and comfortable, something the 25-year-old illustrator says he spent a lot of time doing in his previous, traditional bedrooms as well.

Courtesy of Peter Berkowitz

“People are typically surprised that I would want to live in a pod, but I think they tend to underestimate how pleasant a pod can be if it’s designed smartly. It’s the coziest bedroom I’ve ever had. It’s the only bed I’ve had with a fold-down desk, a slanted + cushioned backboard, and uniformly ideal light for reading,” he writes in the post.

This article originally appeared on Fortune.com

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.