Piece retrieval

This is the code we presented