Craft a composition using the given motif while maintaining the musical form outlined by alphabet characters.
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
['a2 f2 d2', "e3 fge fdfad'b", "d2 fdfdge afgefd bfbfd'b afgefd Acegec dfac'd'b", "dfac'd'b afgefd f4 e2 fdfdge afgefd bgbgd'b"]  
X:1
L:1/8
Q:3/4=40
M:3/4
K:D
 f4 gf/g/ | a2 f2 d2 | b3 c'd'b | a2 f2 d2 | e3 fge | fdfad'b | (ba)(ag)(gf) | f4 e2 :: e3 fge | 
 fdfad'b | baaggf | f4 e2 | f4 gf/ g2 | a2 f2 d2 | b3 c'd'b | a2 f2 d2 | e3 fge | fdfad'b | 
 agfedc | d4 d2 :: fdfdge | afgefd | bfbfd'b | afgefd | Acegec | dfac'd'b | afgefd |1 fedcBA :|2 
 f4 e2 |: Acegec | dfac'd'b | afgefd | f4 e2 | fdfdge | afgefd | bgbgd'b | afgefd | Acegec | 
 dfac'd'b | agfedc | d4 d2 |]  