Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['cBAB cdef', 'AB cdef g2 eg'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
"^A dorian" AB | cBAB cdef | gfge dBGB | cBAB cdef | gedB A2 :| AB | cdef g2 eg | f2 df g2 AB | 
 cdef g2 eg | gedB A2 AB | cdef g2 eg | f2 df g2 fg | afge fdef |1 gedB A2 :|2 gedB A4- | A8 ||  