split data creation and analysis into separate files