Basic principles of heredity