A programming exercise based on data matching