started inheritance of pedals and polymorphism