program of inheritance