How Generic Drugs, Patents, and Price Controls Affect Markets