adds avg price
started main loop