Babies and dogs can become the best of friends with some planning