notebook that produces the FOF and CUBE files