Solution to the challenge - about inheritance