added definitions for data structure, accessor functions