There was a dog, it was barking loudly.  James wasn't scared of it though, because it was confined.  Where might it have been confined to?
park table backyard
backyard
a dog would not be confined to a table and a park is where dogs run free or running with their owners, however, dogs are often confined, either by chain or fences in backyards.
it was confined