HI Dan
Yeah I've made many drawings over the years to help others "see it". You should see the one that has all the code sections that are involved in this type project. I usually post this one as it is less confusing.
FYI... if your area is adopting the 2008 NEC and there are no local amendments to sub-panel feeders from the service equipment in attached or detached buildings a 4 wire feeder is now required in either situation. They removed the exception to use a 3 wire feeder to a detached structure panelboard if there are no other metallic paths between the dwelling with the service equipment and detached building.