add basic data analysis