Checkout kata implemented in accordance to Open/Closed Principle using Java.