Need some help here. I could not follow the various data structures that need to be cleaned up.