Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:2/2
K:D
['d2 b2 g2 ed ce a2']  
X:1
L:1/8
M:2/2
K:D
 (3ABc | d2 b2 g2 ed | ce a2 f2 d2 | d2 b2 g2 ed | ce a2 Acec | d2 b2 g2 ed | ce a2 f2 d2 | 
 gbag fdec | d2 f2 d4 | f2 e2 d2 c2 | Bc (3dcB A2 Bc | dcde fefg | a2 g2 e2 a2 | f2 e2 d2 c2 | 
 Bc (3dcB A2 a2 | b2 ag fdec | d2 f2 d2 |]  