tested and worked getting information from user input