exercise 2 function

Fixed UPC function and get tests to run, can’t figure out how to check
if tests are running correctly.