Code for calculating good value was added.