First semi-implementation of price calculation.