Added 'addAssignment' method