Implementing 5th part of FPIS in scala-notebook