Finally building_blocks.ipynb is on the right track. Dividing problem into three steps