Non-profit question

Hi I want to ask a non profit journal entry question. Say someone donate 10k to an organization and restrict the money can only be used in a research program, and the organization use that money in that program. How to write this whole journal entry? 1 Dr cash Cr contribution restricted This is the first entry , then how to write the following entries? Thank you