<P> "Pretty Much Dead Already" was written by Scott M. Gimple and directed by Michelle MacLaren . It features recurring appearances from Lauren Cohan, Scott Wilson, IronE Singleton, Madison Lintz, Emily Kinney, Jane McNeill, James Allen McCune, and Amber Chaney . Following the initial broadcast of the previous installment, "Secrets", writer Robert Kirkman teased the following episode "Pretty Much Dead Already". He stated: "There's a lot of big stuff out there that we will be wrapping up to a certain extent . In the writers' room we were fully aware that we were coming up on this hiatus, so we definitely wrote to it . I think people are going to be a little shocked ." </P> <P> The death of Sophia Peletier is a major incident in "Pretty Much Dead Already", largely affecting the themes of the episode . After the group has shot the walkers housed in Hershel Greene's barn, Sophia appears from the barn as a walker, much to the groups' dismay . A disturbed and distraught Rick Grimes pulls out his weapon and makes the decision to shoot her . Despite being initially surprised about her character's being killed off, Madison Lintz concluded that she understood its aftermath for the show . Lintz affirmed that portraying a walker was a welcoming experience for her, and stated that she was "going to look back on and say that was amazing ." Robert Kirkman felt that killing Sophia would add more dimension to the show, as well as add more flexibility to its storyline progression . "When a good idea comes up, you have to go with it," he articulated . "Sophia is a character who is still alive in the comic book series and who has contributed quite a bit to the overall narrative and informed a lot of story lines for a lot of different characters . Having Carol (...) survive her daughter as opposed to the other way around as it is in the comics is going to lead to interesting but different stories ." Although Kirkman was not on set during production of the sequence, Gimple retrieved shell casings from the blanks that were fired on set . Referred to as "Barnageddon" by the writers, Kirkman asserted that he emphasized unpredictability while creating the scene . </P> <P> It's good to know people didn't see it coming . That's a big concern when you have this kind of story line and you are leading to that kind of reveal . You don't want people to be expecting it, especially in the Walking Dead . I pride myself in the fact that, when you pick up an issue of the comic, you don't know what's going to happen at any time . So any time we can work that into the show and maintain that in a television environment, it's very exciting for me . I'm glad people are being caught off guard . </P> <P> Other themes prevalent in the episode include Lori's pregnancy . After getting into a heated argument, Rick reveals to Shane about her pregnancy . Although he didn't question who the biological father was, Robert Kirkman felt that Rick was "smart enough to know that the kid's either his or Shane's and there may not be any way of ever finding out that definitively ." He continued: "Bringing that up to his wife, who he loves, is only going to be painful for her . I think that's him being a good husband and him showing his tremendous leadership ability in that he can put his self aside for the betterment of someone else ." </P>

In what episode of the walking dead do they find sophia