Wrote resp package for encoding/decoding messages