Trees codes implemented