Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:4/4
K:C
['A G E']  
X:1
L:1/8
M:4/4
K:C
 A2 A d D2 E G | A6 E2 | A G E A A,2 C2 | D8 | A G E D C2 D2 | d3 g e3 d | c3/2 d/ e g d2 c e | 
 A8 |]  