Having trouble getting the computer to recognize multiple variables