Improved scala pattern matching article