Modified to answer the actual question instead of giving the n