What are the functions of the church in the novel?