added sample (creating frame object)