boxes class with their type