Dynamic limit pricing: Optimal pricing under threat of entry