the data_i version

Just a wreck from hg archive. Shows the main idea.