Made changes in names of other variables and added secong ending result.