Adding inheritance