compiles after switching to Box* objects so that I can sort