Doing things with a list.

Added possibility to add an element to a list and display this list.

Is there a more beautiful way to do this?