[Prac 10] Added some inheritance