Exercise 1.3
Better error handling: shows the input which caused the error.
Params for functions that need more than 1 input