start data analysis code