The book follows a pattern. There are seven "signs" leading up to the raising from the dead of Lazarus (this anticipates the resurrection of Jesus), and seven "I am" sayings and discussions, leading up to Thomas saying that the risen Jesus is "my Lord and my God" 