Learning about the Open-Closed Principle