Attempt at using an OO approach to managing the core memory