6.2 function calls and pattern matching