program illustrating list and associative data structure