keeping straight wall bed leg with shelf

Man… if only that existed when I was in college…