added heritage.java