Mendel who became a monk of the Roman Catholic Church in 1843, studied at the University of Vienna from where he studied mathematics, and then later performed many scientific experiments.
His experiment involved growing thousands of pea plants for 8 years. He was forced to give up his experiment when he became abbot of the monastery. He died in 1884 but his experiments still form the basis of genetics and gave a fair idea of inheritance.