adding growth calculation functionality