basically everywhere you've used a variable, you should have used an instance variable instead.