Using similar pattern to iterate through cookbooks