code example of datastructures