Fix spelling error and finished writing variables

Fix the variables and fix spelling error in line 9