Legal tools for protecting inventions