Using times instead of for