Bile acids are synthesized from: