Manipulating data structure