Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
M:4/4
K:D
['B2 (3ABd', 'AF FE', 'A,B, D2 BA']  
X:1
L:1/8
M:4/4
K:D
|: A2 BA AF ED | EF ED A,2 A,D | B,D DB, B2 (3ABd | B2 (3ABd fe dB | dB BA Bd (3DEF | 
 GF ED B,2 B,D | A,D BA FE ED | D4 D4 :: ef fa fe d2 | BA AF A2 A2 | DE FB AB df | ef ac B2 Bd | 
 AF FE F2 FB | AF FD B,2 B,B | AF FE (3DEF ED | D4 D4 :: D2 (3DEF AB d2 | f2 (3fed BA F2 | 
 E2 (3EFA B2 (3ABd | f2 (3efa fe dA | F2{F} ED (3DEF A,B, | D2 BA Bd A,B, | D2 BA FE ED | D4 D4 :|  