Changed BoxType classes implementation

removed interface