Sorry Sir, I seem to have forgotten a line.

One has to includepackage caption also.