Calculating age and height of tree