I want to write my own append , for appending an element to an existing list .

I've written the following : 

```
(define (appendElem llist elem)
    (if (null? llist)
        elem
        (cons (car llist) (appendElem (cdr llist) elem))))

```

But when I do this :

```
(appendElem (list 1 2 30) 11)

```

I get : 

```
(1 2 30 . 11)

```

So the question is , why `(1 2 30 . 11)` and not `(1 2 30 11)` ? 

Thanks 

**EDIT:** 

Fixed : 

```
(define (appendElem llist elem)
    (if (null? llist)
        (list elem)
        (cons (car llist) (appendElem (cdr llist) elem))))

```