Add getTotalNecessaryExp method