model erasure code strictly in code