partial solution V2 to Cookbook