Solution for inheritance task was added

Find the task in the readme.md file