simple Java implementation for the code kata "back to the checkout"