Converted BasketCalculator to an interface so that a lambda impl can be
added later