Use 'let' instead of 'def' to define a function.