Added Functions for exercise

Added some things for exercise 2 about getting the UPC to check if the
number is correct. Need to fix it. A lot.