Added reservoir sample code