quiz inheritance2- made the abstract class and sub classes