Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/4
Q:3/4=120
M:6/4
K:D
['e f2', 'B d d'  
X:1
L:1/4
Q:3/4=120
M:6/4
K:D
 A2 A d2 e | e f2 e2 d | e f2 e2 d | e f2 B2 A |1 B d d d3 :|2 B d d d2 f/g/ |: a2 b a3/2 g/ f | 
 e2 d e2 f/g/ | a2 b a3/2 g/ f | e2 d e2 (d/e/) | f3 B2 A | B d d d2 e | f3 B2 A |1 
 B d d d2 f/g/ :|2 B d d d3 |]  