First implementation of inheritance.
Inheritance1 - log parent name.