Bad smells are defined as design flaws in the coding structure. They inherently suggest the need for refactoring [2] . As a system ages, it develops design flaws which limit the programmer to further modify the code. A s the design breaks down, maintenance becomes more difficult. I n order to further update the system, the programmer must initially reengineer the system using the refactoring process. Refactoring plays a key role in reverse engineering and re-engineering by making semantic changes while keeping the functional behavior of the code intact