She did not really have a son. She concocted the idea that, if she just gave her handmaiden to Jacob and that handmaiden should conceive, that it would be having a baby by proxy. And, indeed, that is exactly what occurred. And when it did occur, she apparently chose the name for the baby that she had by proxy; and she named him Dan, which means "judge." From that she deduced that God had heard her complaint and had judged the situation and given her a son. So she felt a measure of blessing. You can begin to see how deeply this polygamy was playing on her mind.