Melvin receives stock as a gift from his uncle. The adjusted basis of the stock is $14,000 and the fair market value is $20,000. Melvin trades the stock for bonds with a fair market value of $17,000 and $3,000 cash. What is his recognized gain and the basis for the bonds?