Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['Bc/d/ as F2 dcBAG FDE DDED AG', 'AG/F/ d>ef>g e>dd>c B>A B>c d2 A2'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
|: Bc/d/ |"_All as written" F2 dcBAG | FDE DDED | AG F2 d2 | efg fedd | cBAB c2 A2 :: AG/F/ | 
 d>ef>g e>dd>c B>A | B>c d2 A2 | Bc/d/ F2 dcBA/G/ | FDED DE D2 :|  