added template feature and refactored sharedDriver class by solving sonar issues