write class X
write class Y
demonstrate using a superclass reference to refer to a subclass object