working apartment average with instant variable
all instant variables updated