Carl is a 30 percent partner in the CCF Partnership. At the beginning of the year, his basis in the partnership is $4,000. The partnership reports $7,000 of ordinary income and distributes $3,000 to the partners. What is Carl's basis at the end of the year?