XML 29 R6.htm IDEA: XBRL DOCUMENT v3.8.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Operating activities      
Net loss $ (19,626) $ (58,528) $ (20,140)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization expense 7,228 7,608 2,863
Share-based compensation 14,744 12,165 7,847
Changes in operating assets and liabilities:      
Accounts receivable (10,878) (1,540) 1,711
Prepaid expenses 332 (1,677) 2,405
Restricted cash 0 0 300
Other assets 262 276 (285)
Accounts payable (1,544) 2,232 (163)
Accrued expenses 12,832 4,659 3,545
Lease exit liability (1,593) (2,822) (3,293)
Deferred revenue 6,533 (4,191) (12,223)
Deferred rent 6,115 (1,134) 4,650
Other liabilities 0 (727) (878)
Net cash provided by (used in) operating activities 14,405 (43,679) (13,661)
Cash flows from investing activities      
Purchases of marketable securities (135,122) (347,762) (142,910)
Proceeds from sales and maturities of marketable securities 242,401 288,894 0
Purchases of property, equipment and software (29,403) (11,381) (9,197)
Net cash provided by (used in) investing activities 77,876 (70,249) (152,107)
Cash flows from financing activities      
Proceeds from issuance of common stock, net of offering costs 34,244 0 203,467
Proceeds from stock option exercises and ESPP purchases 1,144 1,893 911
Purchase of treasury stock (40) (39) (29)
Net cash provided by financing activities 35,348 1,854 204,349
Net change in cash and cash equivalents 127,629 (112,074) 38,581
Cash and cash equivalents at beginning of period 84,098 196,172 157,591
Cash and cash equivalents at end of period $ 211,727 $ 84,098 $ 196,172