add method List#pack