setting up expressions and assigning numbers to letters