example code for assignment