Assigning reference type field value in code

it worked for me, thanks!