What Are the Main Types of Patents and How Are They Protected?