Three vignettes in Genesis show the development of Judah's character. In the first, he is the one who engineers selling his brother into slavery. In the scene with Tamar, we see a change. He is able to acknowledge his error and do what's necessary to make it right. Finally, standing before Joseph, he is able to put his own interests aside and do whatever is necessary to save his brother Benjamin. His character growth is simply astonishing.