Add heritage

close #1