Craft a composition using the given motif while maintaining the musical form outlined by alphabet characters.
X:1
L:1/8
M:4/4
K:D
['a2 g>f e>d a>A B>c d2', 'd>f e>d', 'e2 f>g e>f d>e c>d B2 c>d']  
X:1
L:1/8
M:4/4
K:D
 a2 g>f e>d a>A | B>c d2 f2 d |: (3ABc | d>f e>d c>A B>c | d>c d>e f>e f>g | (3agf (3gfe d>f e>d |1 
 c2 [ac]2 [ac]2 :|2 c2 f2 d2 |: [Ae]2 | [Ae]4 cA e2 | f>g e>f d>e c>d | B2 c>d e>f g>e | 
 A>a a>e A2 d>c | B>G E>c d>B G>d | e>c A>e f>d B>a | g>f e>d a>A B>c | d2 f2 d2 :|  