make sample program using list