Genesis 4:1-2

Genesis 4:1-2

[1] And Adam  knew  Eve  his wife;  and she conceived,  and bare  Cain,  and said,  I have gotten  a man  from  the LORD.  [2] And she again  bare  his brother  Abel.  was a keeper  of sheep,  but Cain  was a tiller  of the ground. 

What is the context of Genesis 4:1-2?