V.1: "Now Jacob dwelled in the land where his father was a stranger, in the land of Canaan."
V.2: "This is the history of Jacob. Joseph, being seventeen years old, was feeding the flocks with his brothers."
Note especially verse 2, "This is the history of Jacob. Joseph, being seventeen years old..."
It's interesting to note how the Bible sets out to speak about Jacob, but immediately turned around and introduced Joseph, Jacob's son. And the remaining chapters of the book of Genesis henceforth from chapter 37 to 50 (except for chapter 38 where it talks about Judah & Tamar) detailed out Joseph's amazing lifestory.
The glory of Jacob's old age was his son Joseph. Dwelling in a foreign land where circumstances overwhelm the household of Jacob (as strangers in a foreign land under foreign government, system & culture, during a time of famine & lack), Jacob's son, Joseph, thrown into a pit of destruction (under the conspiracy of his jealous brothers), rose to a position of power & authority (in Pharaoh's court) to deliver his family from being ruled by circumstances (in Canaan) to ruling in triumph (in Egypt).
The hand of the Lord was with Joseph in all that he did because he walked his highs & lows with the Lord, never once turning resentful or spiteful for the injustice inflicted upon him.
Indeed, attitude determines destiny.