here I have made a Menu parent class and two child classes that inhairit from it