Get your clicker and some treats and start teaching your dog how to live with you. He hasn't a clue what your rules, morals or expectations are. You have to show him what's expected. You have to reward the absence of bad behaviors. Pretty soon, you'll see that a dog is capable of learning amazing things.
Many people say their dogs mind better than their kids, but they're probably lying.
You may have even taken up a few hobbies with your dog, like Animal Assisted Therapy visits at the local nursing home or hospital. Instead of barking and digging holes in the yard, your dog jogs 2 miles with you on a loose leash every day, brings you the newspaper, and performs tricks for your friends. By now, you may have realized that there are more than plenty great dogs in the world already, and that you don't need to contribute to the overpopulation problem, so you've had your pet spayed or neutered. You've had him to the vet regularly, and he is up on all of his shots. He's been through two obedience classes, two agility classes, and has joined a flyball team.