adding functionality for average and adjusted price