Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:4/4
K:D
['D3 A', 'd3 f'  
X:1
L:1/8
M:4/4
K:D
 D3 A BdAF | D2 AF EDB,A, | D3 A BdAB |1 dBAF EA,B,C :|2 dBAF EFAB || d3 f efdB | A2 FD EDB,A, | 
 d3 f efdf | afed eABc | d3 f efdB | A2 (3FED EDB,A, | d3 f e3 f | afed BAFE || D3 ||  