An analysis of religious belief