Example data and algorithm