added a getContext method to Frame.