adding inheritance