demo with data analysis code at the end