added instance variables to class car