If you use any of the methods listed, it should work. If you give an example of input, it would help to determine why it isn't working. In general, you just put any of those methods into the same location that you had the variables to begin with.