Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:2/4
K:D
['A2 AF/A/ B2 Bc/B/ A>B cd', 'f2 fg/f/ e2 ef/e/ d>c Bc'  
X:1
L:1/8
M:2/4
K:D
|: A2 AF/A/ | B2 Bc/B/ | A>B cd | ed c/d/c/B/ | A2 AF/A/ | B2 Bc/B/ | A>B cd | ed d2 :: f2 fg/f/ | 
 e2 ef/e/ | d>c Bc | BA F/G/A/d/ | f2 fg/f/ | e2 ef/e/ | d>c Bc | ed d2 :|  