functional similarity of law and religion