How Does Patenting an Invention Work?