make Allocator a static inner class