What it took to get them to a unicorn valuation.