added code to add item to list.

Added code to add item to list.