keeping straight wall bed leg with shelf

Side note, who was Murphy and why did he get a bed named after him (or her)?