<P> Meanwhile, Anna becomes suspicious of Tom after Sgt . Riley suggests that he is encouraging Rachel's behavior by keeping in touch with her . Anna attempts to hack into Tom's computer, and in the process she finds a secret phone with several voice messages to another woman Tom is having an affair with . </P> <P> Megan is found dead and forensics determine she was pregnant, but the child was neither Scott's nor Abdic's . Scott confronts Rachel, in the process revealing that he assaulted Megan prior to her death . Rachel sees Martha on the train and apologizes for her previous behavior, but her memory of the occasion does not match Martha's version; Martha tells her that Tom was fired for having sexual relations with co-workers . Rachel realizes that Tom planted false memories in her head on several occasions following a drinking binge . </P> <P> Anna finds out that Tom was exchanging phone calls with Megan . Rachel realizes that Megan had confided in Abdic about her pregnancy, leading to their encounter on the balcony . After leaving the train that day, Rachel caught Tom meeting Megan and shouted at her, mistaking her for Anna . Tom attacked Rachel before returning to Megan, who told him about the baby and refused to get an abortion . Fearing that their affair would be exposed, Tom murdered Megan . </P> <P> Rachel goes to Tom's house to warn Anna, who reveals that she already knows about the affair . Tom arrives and Rachel confronts him . As Tom and Rachel argue, Anna reveals that she had found Megan's phone . Tom then carries Evie out of the room; a fearful Anna pleads for him to give her the baby while Rachel tries to dial 911 . Tom knocks Rachel unconscious; when she comes round, Tom threatens her again, trying to suggest that Rachel is responsible for his actions . He tries to strangle her, watched by Anna from the top of the stairs . Rachel runs from the house, grabbing a corkscrew on her way out . Tom catches up with her in the garden, and she stabs him in the neck with the corkscrew as Anna watches from the window . Anna arrives and pushes the corkscrew deeper into Tom's neck, killing him . </P>

Where does girl on a train take place