added min/max example