solving exp growth problem