Code for an assignment