4. Lambda functions with Error-handling