Investing with a good margin of safety