Separate code of generator and driver

In reply to Tudor Timi:

Thanks Tudor!!!.

Regards
Sunil