Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/4
M:3/4
K:F
['A G F']  
X:1
L:1/4
M:3/4
K:F
"^1" c | d c B | A2 A | G F E | F2"^2" A | B A d | c c c | B A G | A2"^3" F | F2 F | F2 F | C2 C | 
 F2 |]  