classes depend on all instances