Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:2/2
K:D
['DFAc d2 (3ABc defd ecAc d2 (Ac)', 'd2 (fd) (3fga (fd)'  
X:1
L:1/8
M:2/2
K:D
 DFAc d2 (3ABc | defd ecAc | d2 (Ac) BAGF | EFGE FD D2 :| d2 (fd) (3fga (fd) | g2 (bg) ecAc | 
 d2 (fd) (3fga (fd) | efge (fd) d2 | d2 (fd) (3fga (fd) | g2 (bg) ecAc | d2 (Ac) BAGF | 
 EFGE (FD) D2 |]  