Which one is correct?
A)After doing my homework, I came to cinema.
B)After having done my homework, I came to cinema.
C)A and B are both correct.
D)A and B are neither correct.