The first thing you'll need to do is to measure the space between the wall and the front of the shelf to find the halfway point – this is where your rail will attach. Mark up with a pencil.
Take your brackets and place them over the halfway points on each side. Use a pencil to mark where you'll need to drill your pilot holes.
It's very important when drilling pilot holes not to drill too deep. To ensure you don't end up drilling all the way through your shelf, grab your drill bit and mark up the halfway point of your screw with some masking tape – this is where you'll be drilling to. Pop some safety glasses on and drill your pilot holes at the places you've marked up.
Screw your brackets on using your pilot holes. Push your curtain rod through the brackets and mark where you'll need to cut it down to size. Don't forget to leave space at the end of the curtain rods for the end caps.
Head outside and use a hacksaw to cut your rod down to size. Don't forget to wear gloves for this bit – you don't want to get iron filings in hands.
Once you've cut your rod to size, thread it through the brackets and attach your end caps – these are what will protect you from those sharp ends. Use a Phillips Head screwdriver to secure them to the rod.
How easy was that? You've now added a hanging rail to your cubed storage, increasing your hanging space even more. Your guests will love you for it!