Well written functions check inputs to make sure the input is valid. The function ErrorCheck takes three arguments:
If the input is anything other then this, throw the error message
'Cody demonstration error'
If the input is good, simply return 23.