[Stanford#Assg4]: Corrected a flaw with computation of current values
based on previous values