Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/4
M:2/2
K:D
['A A']  
X:1
L:1/4
M:2/2
K:D
 A | d A A A | B A A A | B3/2 G/ G F | F2 E2 | D2 F2 | A3 z | A2 c2 | e3 d | c B A G | G2 F |]  