create function of values for the letters