Modelling inheritance