Finish min and max example