We built this fence with an integral dog run that has a partial border with the deck we built afterwards. Each gate leads to a different part of the yard and both are lockable.