Add durability constraint in constructor of CubeData extends.
Modified constructor in CubeData extends