Replacing with variables