using properties instead of instance variables in some classes