Adds class inheritance