Lab4 decoding