Develop musical compositions that maintain the outlined structure and integrate the provided motif
X:1
L:1/8
Q:1/4=112
M:6/8
K:A
['d>ed cBA d>ef d2 A ded cBA', 'agf e2 A'  
X:1
L:1/8
Q:1/4=112
M:6/8
K:A
"^Allegretto" d>ed cBA | d>ef d2 A | ded cBA | B>cB A2 :: A | dcd (ef)g | agf e2 A | d>cd efg | 
 fed a2 A | d>cd efg | agf e2 A | ded c2 a | B2 c d2 :|  