added more variables and an array

added more variables and an array