Added method for negative numbers