Craft a musical work in accordance with the given alphabetical guide of the desired layout and the presented motif.
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
['d2f2 a4 g2ga f2fg', 'a2a2 bagf g2g2']  
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
 d2de d2c2 | d2f2 a4 | g2ga f2fg | e2ef dcBA | d2de d2A2 | d2f2 a4 | g2ga f2fg | fedc d4 :: 
 a2a2 bagf | g2g2 agfe | f2f2 gfed | cdef e2A2 | a2a2 bagf | g2g2 agag | f2f2 gfed | cdec d4 :|  