A supply chain model with direct and retail channels