ADDED: valid inheritance generation
ADDED: valid inheritance generation