Inheritence using OOP