Stan sold his investment property for $97,000 and had $8,000 in closing costs. The property had a beginning basis of $77,000, capital improvements of $4,000, and depreciation of $15,000. What was Stan's capital gain?