add assignment name attribute and methods for it