Made BoxPrimitive an independent class.