单项选择题

I spent the whole day______the motorbike.The work was anything but simple.

A.having repaired
B.to repair 
C.repaired 
D.repairing