Resolving the conflict between religion and science