Tested the code with different variables.