Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['BABd egfg edBd', 'dfed Bd d2'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 A4 BABd | egfg edBd | e3 A BAAB | dfed BAdB | A3 d BABd | egfg edBd | g3 e fgfe |1 dfed BAdB :|2 
 dfed Bd d2 |: a4 bafg | a2 fd edBA | a2 fa bafe | dfed Bd d2 | a2 da bafg | a2 fd edBA | 
 gage fgfe |1 dfed Bd d2 :|2 dfed BAdc | d8 ||  