issue #361. Draft code for assignment finalization.