One of my daughters sleeps in the top bunk but wears glasses. I created this so that she had a place to store them at night so that she could have them when she wakes up. I've included the file from Fusion 360 so that you can adjust measurements such as thickness of the rail, size of glasses (or other item), etc.