Made abstract class and implemented child