main and frame class generated