Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['A3 F BFAF', 'D4 dffe fgfe dfed BAFA Beef (3efe'  
X:1
L:1/8
M:4/4
K:D
 A3 F BFAF | BFAF EDB,D | A3 F BFAF | EDFE D3 F | A3 F BFAF | DF F2 ABde | f3 e dfec | dBAF D4 :| 
 dffe fgfe | dfed BAFA | Beef (3efe de | fAdf edBd | Affe f3 e | dfed BAFB | ABde fdAF | EDFE D4 :|  