Construct a musical composition using the provided motif and maintain the designated form.
X:1
L:1/8
M:2/2
K:D
['fg a2 af gbag fefa gfef dcde', 'a2 af'  
X:1
L:1/8
M:2/2
K:D
 fg | a2 af gbag | fefa gfef | dcde fdec | dedc AGFG | AB=cA d^cAG | FEFG AB=cA | dcdf edce | 
 d2 dc d2 :| A2 | dcde fefg | a2 af defg | a2 af gbag | fgfe defg | a2 af gbag | fefa gfef | 
 dcde fdec | dedc A2 |]  