Block coding