list2 function is added. it can easily define a list by refering other variables which are used as arguments.