Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:4/4
K:D
['A,D (3DDD A,DFA BFAF', 'fd (3ddd'  
X:1
L:1/8
M:4/4
K:D
 A,D (3DDD A,DFA | BFAF E2 (3ABc | d2 cA BdAF | (3GFE FD EDB,D | A,D (3DDD A,DFA | BFAF EFAc | 
 cdcd BdAF |1 GFEG FDB,D :|2 GFEG FD D2 || fd (3ddd fdgd | fd (3ddd edBc | dBBA Bcde | fagf e3 d | 
 fd (3ddd fdgd | fd (3ddd edBc | dBBA BdAF | GFEG FD D2 | fd (3ddd fdgd | fd (3ddd edBc | 
 dBBA Bcde | fagf ef (3gfe | a3 f edBc | dfed BAFA | A,D (3DDD A,DFA | BFAF D2 DB, ||  