its easy u can get a solar powered elec fence but this will work take some stainless wire or jus regular bailin wire and get some wooden stakes and place every 6 to 8 ft around base of fence 6 inchs out away frm fence ,each stake has an elec fence thing screwed in place and the wire that goes around entire yard rides in it ,u can take the back porch lite and turn light off and turn it to go out 1 side and return back thru ,using the bulb as a fuse . u wont feel it with shoes on if u touch it but ur dog will . check with ohm meter its about .09 of a volt with 1/2 acrea of fence covered , ive electrafied barb wire this way .but this way is one way u can keep hogs in there worse diggers than dogs . this will detour the worse diggers .. the lght only burns pennys a day and worth the piece of mind especialy if u were to say have a pit bull .