Craft a musical work in accordance with the given alphabetical guide of the desired layout and the presented motif.
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
['e3 f', 'd3 f afed']  
X:1
L:1/8
Q:1/2=80
M:4/4
K:D
 d2 e2 afed | e3 d B3 A | d3 f afed |1 e3 f d4 :|2 e3 f d2 |: ga | b6 fg | a6 fe | d3 f afed | 
 e3 d B3 A | d3 f afed |1 e3 f d2 :|2 e3 f d4 |]  