Develop a musical composition centered around the provided motif while maintaining the appropriate form.
X:1
L:1/8
Q:1/2=120
M:2/4
K:D
['f e3 c A2 f2 g2 ec', 'g3 b agfe'  
X:1
L:1/8
Q:1/2=120
M:2/4
K:D
"^A" f | e3 c | A2 f2 | g2 ec | d3 f | e3 c | A2 f2 | g2 ec | d3 :|"^B" z | a2 af | g2 ge | f2 fd | 
 e4 | a2 af | g3 b | agfe | d4 | aaaf | ggge | fffd | e2 fg | aaaf | g3 b | agfe | d2 cd |]  