using remove() properly now in IntList example