Title: Optimal Design of Patent Rights