assigned an is_numeric funtion to each argument and displayed error if not numeric