added example for frame and named frames