What did gregor mendel discover while working with pea plants?

they mastervated themselves