creatingExtendedClassInParentClass