An encoder for encoding data, wherein the encoder comprises: a processor, configured to encode data to be encoded using c 0 n − 1 = u 0 n − 1 A to obtain codewords c 0 n − 1, wherein the codewords c 0 n − 1 is subject to the constraints u 0 n − 1 V T = 0, wherein u 0 n − 1 denotes the data to be encoded, wherein n = 2 m, m is a positvie integer, wherein A = 1 0 1 1 ⊗ m, wherein F ⊗m denotes the m-times Kronecker product of the matrix F with itself and wherein the constraint matrix V is defined by the following equation: V = V 0 V 1 0 0 V 2 E wherein V 0 denotes a constraint matrix of a (n, k, d) parent polar code C, V 1 denotes a constraint matrix of a first helper code C 1, V 2 denotes a constraint matrix of a second helper code C 2 and E denotes a matrix consisting of rows of weight 1, wherein n in ( n, k, d) is a length of the parent polar code C, wherein k in (n, k, d) is a length of information data, and wherein d in ( n, k, d) a minimum distance of the parent polar code C; wherein the first helper code C 1 defines a minimum distance d 1, which is greater than or equal to the minimum distance d of the parent polar code C; wherein the second helper code C 2 defines a minimum distance d 2, which is greater than or equal to half the minimum distance d of the parent polar code C; wherein the encoder further comprises a memory comprising a specification of the parent polar code C, the first helper code C 1 and the second helper code C 2, wherein the specification is based on an approximation of the parent polar code C, the first helper code C 1 and the second helper code C 2 for a binary erasure channel, BEC; and wherein the encoder is configured to generate the specification of the parent polar code C, the first helper code C 1 and the second helper code C 2 by the following steps determining a first frozen set of the parent polar code C, the first helper code C 1 and the second helper code C 2; determining a second frozen set of an approximation of the parent polar code C, the first helper code C 1 and the second helper code C 2 using the BEC; and determining and storing the symmetric differences between the first frozen set and the second frozen set in the memory of the encoder as part of the specification of the parent polar code C, the first helper code C 1 and the second helper code C 2. wherein the first helper code C 1 defines a minimum distance d 1, which is greater than or equal to the minimum distance d of the parent polar code C; wherein the second helper code C 2 defines a minimum distance d 2, which is greater than or equal to half the minimum distance d of the parent polar code C; wherein the encoder further comprises a memory comprising a specification of the parent polar code C, the first helper code C 1 and the second helper code C 2, wherein the specification is based on an approximation of the parent polar code C, the first helper code C 1 and the second helper code C 2 for a binary erasure channel, BEC; and wherein the encoder is configured to generate the specification of the parent polar code C, the first helper code C 1 and the second helper code C 2 by the following steps determining a first frozen set of the parent polar code C, the first helper code C 1 and the second helper code C 2; determining a second frozen set of an approximation of the parent polar code C, the first helper code C 1 and the second helper code C 2 using the BEC; and determining and storing the symmetric differences between the first frozen set and the second frozen set in the memory of the encoder as part of the specification of the parent polar code C, the first helper code C 1 and the second helper code C 2. determining a first frozen set of the parent polar code C, the first helper code C 1 and the second helper code C 2; determining a second frozen set of an approximation of the parent polar code C, the first helper code C 1 and the second helper code C 2 using the BEC; and determining and storing the symmetric differences between the first frozen set and the second frozen set in the memory of the encoder as part of the specification of the parent polar code C, the first helper code C 1 and the second helper code C 2.