invoked function and tested

Invoked the function passing in stored data from user prompts. Tested
in console