Design Patterns Implementation in languages like java, C++ and javascript