Creating the build_output_frame() method