Purpose of religion and science