Example 2: Writing to a frame