account for negative inputs
should now support negative values
updated test cases