Open Closed Principle Stack Overflow