write a program to create a frame by creating an object to the subclass of an frame class