no need to use an instance variable, just `cores` will suffice.