Here is the theme and variations I have composed on noteflight.
When I first started composing the theme, I was just playing around with the notes and modifying them by listening to it over and over again. I only added the harmony after I created my first version. For the first version, I changed the melody by adding notes. When I was adding notes, I tried to just add notes in between the notes in the theme. Many of the measurements have the same notes on the same beat as the theme. For the second variation, I changed the harmony and kept the melody the same. The pattern for the harmony was ascending for 4 eighth notes, descending for 2 eighth notes, ascending 1 and then a rest. The second pattern was the opposite of this. I mostly started on C because I was using the C major scale. For the third version, I took away notes and also slowed the tempo down a little (115 BPM). This version is very simple. I wanted to change it up a bit because I have been using a lot of eighth notes in the versions before. For the fourth variation, which is the last one, I changed the melody and the harmony by adding notes. I also returned to the same tempo as before (120 BPM). For the last variation, I wasn’t really thinking a lot about patterns but instead just purely playing around with the notes. I found this hard because I had to listen to how it sounds over and over again until I got it to sound the way I wanted to. In the end , I finished the piece by playing the theme again.