Effects of inventions on production and trade