Apply simplification suggested by Chris: why assign() when operator = will do?