pack() and dump() methods