added promise pattern and anti-pattern examples.