creating instance variables and testing them