Open close principle excercise