Scientists and inventors routinely have their work appropriated and turned into profit for the ruling class. This is essentially what the pharmaceutical industry is. The answer to this is not "make sure to get yours, too", it is to prevent the possibility of accumulation based on your work by ensuring its value belongs to everyone.