Implemented high level function to compute product prices.