Problem 1

Fixed the function call and console logs to output in a meaningful way