text and plotting code fro the log model