added assignm code