Theorem 5 implemented.