Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
Q:1/2=80
M:2/2
K:D
['fg afge dfed cdec A3 G FAdf', 'B2 B2'  
X:1
L:1/8
Q:1/2=80
M:2/2
K:D
 fg | afge dfed | cdec A3 G | FAdf gfed | ce A2 A2 fg | afge dfed | cdec A3 G | FAdf gedc | 
 d2 d2 d2 :: cd | eAAA eAAA | gbfa eAAA | gfed edcd | B2 B2 B2 AG | FAdF GBed | cABc defg | 
 afbg fdec | d2 d2 d2 :|  