Petin version of inheritance