add small code samples to put/take doc