Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/4
Q:1/4=110
M:3/4
K:D
['A A B']  
X:1
L:1/4
Q:1/4=110
M:3/4
K:D
 (B/ c/) | d c B | A2 F/ F/ | ^G B ^A | B3 | A A B | A/ F/ D E | F B ^G | A2 B/ c/ | d c B/ B/ | 
 A A B | (=c B) A | G2 F/ E/ | D2 E | F d A | (G F) E | D2 |]  