Ames Corporation repurchases 10,000 shares of its common stock for $12 per share. The shares were originally issued at an average price of $10 per share. Later it resells 6,000 of the shares for $15 per share and the remaining 4,000 shares for $17 per share. How much gain or loss should Ames report on its income statement as a result of these transactions?