learned parseInt function to help add up prompts