working with NYT API and methods