Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
M:2/2
K:D
['BE (3(GFE)', 'D2 (fg) afdf bgec dcde fdcA Bddc']  
X:1
L:1/8
M:2/2
K:D
 (udB) | AD (3(FED) A2 (3(FED) | D(dcd) f(dcd) | BE (3(GFE) BE (3(GFE) | Eeed cdeg | fddf gfed | 
 (3(cBA) Bc d2 ag | fdec dABG | (3(FGF) (3(EFE) D2 |] (fg) | afdf bgec | dcde fdcA | Bddc def^g | 
 a2 ^g2 a2 (3(ABc) | defg afdf | bged cdeg | fedc edcB | AGFE D2 |]  