Accounting for research and development expenditures