You are right should be with inheritance
Actually,
My teacher didnt teach inheritance yet.
I think question can be without inheritance.
What is your advise?
Thank you.