Add inheritance to datatypes