pickle example updated