Use NegativeNumberError instead of StandardError
Add rescue operation to main program with raise checking hwether negative number or not