modified Exercise 5 to work with negative numbers as well, and fixed a small bug (adding variable secondNumber2 to store the changes without affecting secondNumber)