added sample code in FrameBuffer.java