cost basis method