added some calculations and graphs