write blog about adaptor pattern and facade pattern