data structure demo code