Step 5: throw exception with explanatory message on negative numbers