added average price method