Some stuff for data analysis