Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['ABde f2 ef gfed B2 AG FAde', 'af f2 bggb'  
X:1
L:1/8
M:4/4
K:D
 ABde f2 ef | gfed B2 AG | FAde f3 b | afeg fedB | ABde f2 ef | gfed B2 AG | FAde f3 b | 
 afeg fddf || af f2 bggb | agfd efdf | af f2 bggb | agfe d3 f | af f2 bggb | agfd efdB | 
 ABde f2 ef | gfed B2 AG ||  