Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/2=108
M:4/4
K:D
['f dA-AG (GF)(ED) Eeef gfef dBAG FdTcB', 'fdad fagf'  
X:1
L:1/8
Q:1/2=108
M:4/4
K:D
 f | dA-AG (GF)(ED) | Eeef gfef | dBAG FdTcB | AFGE D/D/D D :| g | fdad fagf | efga bgeg | 
 fdad fagf | geaf d/d/d (da) | fada fdad | gebe gebe | faef deBd | Afdf D/D/D D |]  