Added else if conditional statement and adjusted variables to test the code.