I can't make friendship work between Object and Environment::Pack, so I had to make some stuff public that should be protected. See object.h. I'll get this right someday... It's C++. I wrote it.