updated Open Close Principle example code.