Essays on Market Structure and Product Quality