add averageProducerPrice; add main function