real data analysis code initial commit