Our dog (a gorgeous Labrador retriever) had no experience of small children or babies and used to shy away from any children trying to stroke her. When the dog was introduced to our first grandchild (who was only a few weeks old) she was inquisitive and we let her sniff the baby's hands and feet. We gave the dog lots of praise and never pushed her away (if she tried to sniff the baby's face, we just repositioned the baby, rather than push the dog away). We took great pains to make the dog feel included, (never shut her in another room or behind a baby gate) and gave her treats when the baby visited. That was 4 years ago; we now have two grandchildren and she's so patient with them and has even started sitting next to the eldest grandchild and puts her head on our grandaughter's lap, and goes fast asleep, which is lovely! The dog still paws me when I play on the floor with the grandchildren, (she must feel a little left out) and I always fuss her and tell her how good she is. However, Labradors are known for their gentle nature, and I'm sure it could be more difficult with some other breeds.