code for assignment  plus  example of use