When my youngest daughter was studying music at high school she was asked to compose a theme and variations as homework and I helped her by making up a simple melody and showing her how to make variations. She then did her own but I retained my example and used it as the first movement of this string quartet.