implemented exhaustive search & Using polymorphism

also renamed folder