A simple scala program demonstrating the Chain of Responsibility design pattern