After Louie had written his composition, he handed it to his teacher.
A.Handed the composition to his teacher, Louie wrote it.
B.Having written his composition, Louie handed it to his teacher.
C.Writing the composition, Louie handed it to his teacher.
D.Handing the composition, Louie had written his composition.